package com.wdz.friend_chain.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 友链记录表
 * </p>
 *
 * @author 吴传逞
 * @since 2021-02-15
 */
@TableName("friend_chain")
public class FriendChain extends Model<FriendChain> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id",type = IdType.UUID)
    private String id;
    /**
     * 链接
     */
    private String href;
    /**
     * 描述
     */
    private String describe;
    /**
     * 图片
     */
    private String image;
    /**
     * 博客名
     */
    private String name;
    /**
     * 联系方式：0-邮箱，1-手机
     */
    @TableField("contact_information")
    private Integer contactInformation;
    /**
     * 邮箱
     */
    private String email;
    /**
     * 手机号码
     */
    private Integer phone;
    /**
     * 审核状态 0-未审核 1-已审核
     */
    private int status;
    /**
     * 创建时间
     */
    @TableField(value = "create_date", fill = FieldFill.INSERT)
    private String createDate;
    /**
     * 修改时间
     */
    @TableField(value = "update_date", fill = FieldFill.INSERT_UPDATE)
    private String updateDate;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getHref() {
        return href;
    }

    public void setHref(String href) {
        this.href = href;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getContactInformation() {
        return contactInformation;
    }

    public void setContactInformation(Integer contactInformation) {
        this.contactInformation = contactInformation;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getPhone() {
        return phone;
    }

    public void setPhone(Integer phone) {
        this.phone = phone;
    }

    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }

    public String getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(String updateDate) {
        this.updateDate = updateDate;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "FriendChain{" +
        ", id=" + id +
        ", href=" + href +
        ", describe=" + describe +
        ", image=" + image +
        ", name=" + name +
        ", contactInformation=" + contactInformation +
        ", email=" + email +
        ", phone=" + phone +
        ", createDate=" + createDate +
        ", updateDate=" + updateDate +
        "}";
    }
}
